package com.ruoyi.forum.exception;


/**
 * 业务异常枚举类
 */
public enum BizExceptionEnum {

    CIRCLE_TOPIC_NOT_EXIST(24701, "该帖子不存在！"),
    CIRCLE_TOPIC_REPORT_HAS_EXIST(24702, "您已举报该帖子，请勿重复操作！"),
    CIRCLE_TOPIC_LABEL_CANNOT_DEL(24703, "板块分区数量低于最少限制，不能删除！"),
    CIRCLE_TOPIC_LABEL_CANNOT_ADD(24704, "板块分区数量超出最大限制，不能新增！"),
    CIRCLE_TOPIC_LABEL_NAME_OVER_LIMIT(24705, "板块分区名称超出最大长度限制，请修改后提交！"),
    CIRCLE_BLACKLIST_NOT_EXIST(24706, "禁言用户不存在！"),
    CIRCLE_BLACKLIST_BANNED(24707, "您已被管理员禁言，如有疑问，请联系平台客服！"),
    CIRCLE_TOPIC_LABEL_NOT_EXIST(24708, "该板块未找到！"),
    CIRCLE_TOPIC_TOP_NUM_OVER_LIMIT(24709, "超出该板块置顶数量限制！");

    private final Integer code;

    private final String message;

    BizExceptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}